#ifndef _TEXTURE_HPP
#define _TEXTURE_HPP

#include "PhoenixInitializer.hpp"
#include "SOIL.h"

namespace phx
{

class Texture
{
public:
	Texture();
	bool loadFromFile(const char *filename);
	bool loadFromMemory(int width, int height, void *pixels);
	~Texture();
	friend class Sprite;
private:
	GLuint mTexture, mTextureUnit;
	int mWidth, mHeight;
};

}

#endif